package tupleT

import scala.collection.mutable

object TupleTest {
  def main(args: Array[String]): Unit = {
    val tuple=("hello",122,'a',true,List(1,2,3,"df"))
    println(tuple.getClass.getSimpleName)
    println(tuple)
    println(tuple._5.mkString(","))
    println(tuple._2)
    for (elem<-tuple.productIterator)
      {
        print(elem+"\t")
      }
    println("============")
    val ints: mutable.Set[Int] = mutable.Set(1, 2, 3, 4, 5)
    ints.add(6)
    ints+=23
    println(ints)
  }


}
